package com.atstudent.gmall.common.feign.cart;

import com.atstudent.gmall.cart.vo.AddCartSuccessVo;
import com.atstudent.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author 薛有朋
 * @CreatDate 2025/4/8 20:10
 **/
@FeignClient(value = "service-cart")
public interface CartFeignClient {

    @GetMapping(value = "api/inner/cart/addCart")
    public Result<AddCartSuccessVo> addCart(@RequestParam(value = "skuId") Long skuId , @RequestParam(value = "skuNum") Integer skuNum);

    @DeleteMapping(value = "api/inner/cart/deleteAllChecked")
    public Result deleteAllChecked();
}
